import http from "../axios";

export const loginApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: `/base/biz/user/login?clientType=${data.clientType}`,
    data
  });
};
export const loginOutApi = () => {
  return http({
    method: "post",
    url: "/base/biz/user/logout"
  });
};
export const getUserInfoApi = () => {
  return http({
    method: "post",
    url: "/base/biz/user/query/info"
  });
};

export const changePasswordApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/customer/updatePassword",
    data
  });
};

//校验是否需要修改密码
export const checkUpdatePasswordApi = () => {
  return http({
    method: "post",
    url: `/base/biz/user/checkUpdatePassword`
  });
};
